<script setup lang="ts">
// @ts-ignore
import router from '@/router'

declare global {
  interface Window {
    // @ts-ignore
    pywebview: { api: any },
    debug: (text: string, type: any) => void
  }
}
const goto = (page: string) => {
  if (page === 'POE') {
    router.push('/poe')
  } else {
    window.open(page)
  }
}

</script>

<template>
  <div id="工作区" class="container bg-blue-100">
    <button class="m-4 p-2 bg-blue-500 text-white rounded hover:bg-blue-600" @click="goto('POE')">
      打开手柄模拟器
    </button>

  </div>
</template>

<style lang="postcss" scoped>
.container {
  width: 100%;
  height: 100%;
  padding: 1rem;
}
</style>
